package com.stx.threeGrup.model.automodel;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LoveBokeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LoveBokeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBokeIdIsNull() {
            addCriterion("boke_id is null");
            return (Criteria) this;
        }

        public Criteria andBokeIdIsNotNull() {
            addCriterion("boke_id is not null");
            return (Criteria) this;
        }

        public Criteria andBokeIdEqualTo(Integer value) {
            addCriterion("boke_id =", value, "bokeId");
            return (Criteria) this;
        }

        public Criteria andBokeIdNotEqualTo(Integer value) {
            addCriterion("boke_id <>", value, "bokeId");
            return (Criteria) this;
        }

        public Criteria andBokeIdGreaterThan(Integer value) {
            addCriterion("boke_id >", value, "bokeId");
            return (Criteria) this;
        }

        public Criteria andBokeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("boke_id >=", value, "bokeId");
            return (Criteria) this;
        }

        public Criteria andBokeIdLessThan(Integer value) {
            addCriterion("boke_id <", value, "bokeId");
            return (Criteria) this;
        }

        public Criteria andBokeIdLessThanOrEqualTo(Integer value) {
            addCriterion("boke_id <=", value, "bokeId");
            return (Criteria) this;
        }

        public Criteria andBokeIdIn(List<Integer> values) {
            addCriterion("boke_id in", values, "bokeId");
            return (Criteria) this;
        }

        public Criteria andBokeIdNotIn(List<Integer> values) {
            addCriterion("boke_id not in", values, "bokeId");
            return (Criteria) this;
        }

        public Criteria andBokeIdBetween(Integer value1, Integer value2) {
            addCriterion("boke_id between", value1, value2, "bokeId");
            return (Criteria) this;
        }

        public Criteria andBokeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("boke_id not between", value1, value2, "bokeId");
            return (Criteria) this;
        }

        public Criteria andBokeTitleIsNull() {
            addCriterion("boke_title is null");
            return (Criteria) this;
        }

        public Criteria andBokeTitleIsNotNull() {
            addCriterion("boke_title is not null");
            return (Criteria) this;
        }

        public Criteria andBokeTitleEqualTo(String value) {
            addCriterion("boke_title =", value, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeTitleNotEqualTo(String value) {
            addCriterion("boke_title <>", value, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeTitleGreaterThan(String value) {
            addCriterion("boke_title >", value, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeTitleGreaterThanOrEqualTo(String value) {
            addCriterion("boke_title >=", value, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeTitleLessThan(String value) {
            addCriterion("boke_title <", value, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeTitleLessThanOrEqualTo(String value) {
            addCriterion("boke_title <=", value, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeTitleLike(String value) {
            addCriterion("boke_title like", value, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeTitleNotLike(String value) {
            addCriterion("boke_title not like", value, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeTitleIn(List<String> values) {
            addCriterion("boke_title in", values, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeTitleNotIn(List<String> values) {
            addCriterion("boke_title not in", values, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeTitleBetween(String value1, String value2) {
            addCriterion("boke_title between", value1, value2, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeTitleNotBetween(String value1, String value2) {
            addCriterion("boke_title not between", value1, value2, "bokeTitle");
            return (Criteria) this;
        }

        public Criteria andBokeContextIsNull() {
            addCriterion("boke_context is null");
            return (Criteria) this;
        }

        public Criteria andBokeContextIsNotNull() {
            addCriterion("boke_context is not null");
            return (Criteria) this;
        }

        public Criteria andBokeContextEqualTo(String value) {
            addCriterion("boke_context =", value, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeContextNotEqualTo(String value) {
            addCriterion("boke_context <>", value, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeContextGreaterThan(String value) {
            addCriterion("boke_context >", value, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeContextGreaterThanOrEqualTo(String value) {
            addCriterion("boke_context >=", value, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeContextLessThan(String value) {
            addCriterion("boke_context <", value, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeContextLessThanOrEqualTo(String value) {
            addCriterion("boke_context <=", value, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeContextLike(String value) {
            addCriterion("boke_context like", value, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeContextNotLike(String value) {
            addCriterion("boke_context not like", value, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeContextIn(List<String> values) {
            addCriterion("boke_context in", values, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeContextNotIn(List<String> values) {
            addCriterion("boke_context not in", values, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeContextBetween(String value1, String value2) {
            addCriterion("boke_context between", value1, value2, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeContextNotBetween(String value1, String value2) {
            addCriterion("boke_context not between", value1, value2, "bokeContext");
            return (Criteria) this;
        }

        public Criteria andBokeDateIsNull() {
            addCriterion("boke_date is null");
            return (Criteria) this;
        }

        public Criteria andBokeDateIsNotNull() {
            addCriterion("boke_date is not null");
            return (Criteria) this;
        }

        public Criteria andBokeDateEqualTo(Date value) {
            addCriterion("boke_date =", value, "bokeDate");
            return (Criteria) this;
        }

        public Criteria andBokeDateNotEqualTo(Date value) {
            addCriterion("boke_date <>", value, "bokeDate");
            return (Criteria) this;
        }

        public Criteria andBokeDateGreaterThan(Date value) {
            addCriterion("boke_date >", value, "bokeDate");
            return (Criteria) this;
        }

        public Criteria andBokeDateGreaterThanOrEqualTo(Date value) {
            addCriterion("boke_date >=", value, "bokeDate");
            return (Criteria) this;
        }

        public Criteria andBokeDateLessThan(Date value) {
            addCriterion("boke_date <", value, "bokeDate");
            return (Criteria) this;
        }

        public Criteria andBokeDateLessThanOrEqualTo(Date value) {
            addCriterion("boke_date <=", value, "bokeDate");
            return (Criteria) this;
        }

        public Criteria andBokeDateIn(List<Date> values) {
            addCriterion("boke_date in", values, "bokeDate");
            return (Criteria) this;
        }

        public Criteria andBokeDateNotIn(List<Date> values) {
            addCriterion("boke_date not in", values, "bokeDate");
            return (Criteria) this;
        }

        public Criteria andBokeDateBetween(Date value1, Date value2) {
            addCriterion("boke_date between", value1, value2, "bokeDate");
            return (Criteria) this;
        }

        public Criteria andBokeDateNotBetween(Date value1, Date value2) {
            addCriterion("boke_date not between", value1, value2, "bokeDate");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andBokeGoodIsNull() {
            addCriterion("boke_good is null");
            return (Criteria) this;
        }

        public Criteria andBokeGoodIsNotNull() {
            addCriterion("boke_good is not null");
            return (Criteria) this;
        }

        public Criteria andBokeGoodEqualTo(String value) {
            addCriterion("boke_good =", value, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeGoodNotEqualTo(String value) {
            addCriterion("boke_good <>", value, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeGoodGreaterThan(String value) {
            addCriterion("boke_good >", value, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeGoodGreaterThanOrEqualTo(String value) {
            addCriterion("boke_good >=", value, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeGoodLessThan(String value) {
            addCriterion("boke_good <", value, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeGoodLessThanOrEqualTo(String value) {
            addCriterion("boke_good <=", value, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeGoodLike(String value) {
            addCriterion("boke_good like", value, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeGoodNotLike(String value) {
            addCriterion("boke_good not like", value, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeGoodIn(List<String> values) {
            addCriterion("boke_good in", values, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeGoodNotIn(List<String> values) {
            addCriterion("boke_good not in", values, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeGoodBetween(String value1, String value2) {
            addCriterion("boke_good between", value1, value2, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeGoodNotBetween(String value1, String value2) {
            addCriterion("boke_good not between", value1, value2, "bokeGood");
            return (Criteria) this;
        }

        public Criteria andBokeImgIsNull() {
            addCriterion("boke_img is null");
            return (Criteria) this;
        }

        public Criteria andBokeImgIsNotNull() {
            addCriterion("boke_img is not null");
            return (Criteria) this;
        }

        public Criteria andBokeImgEqualTo(String value) {
            addCriterion("boke_img =", value, "bokeImg");
            return (Criteria) this;
        }

        public Criteria andBokeImgNotEqualTo(String value) {
            addCriterion("boke_img <>", value, "bokeImg");
            return (Criteria) this;
        }

        public Criteria andBokeImgGreaterThan(String value) {
            addCriterion("boke_img >", value, "bokeImg");
            return (Criteria) this;
        }

        public Criteria andBokeImgGreaterThanOrEqualTo(String value) {
            addCriterion("boke_img >=", value, "bokeImg");
            return (Criteria) this;
        }

        public Criteria andBokeImgLessThan(String value) {
            addCriterion("boke_img <", value, "bokeImg");
            return (Criteria) this;
        }

        public Criteria andBokeImgLessThanOrEqualTo(String value) {
            addCriterion("boke_img <=", value, "bokeImg");
            return (Criteria) this;
        }

        public Criteria andBokeImgLike(String value) {
            addCriterion("boke_img like", value, "bokeImg");
            return (Criteria) this;
        }

        public Criteria andBokeImgNotLike(String value) {
            addCriterion("boke_img not like", value, "bokeImg");
            return (Criteria) this;
        }

        public Criteria andBokeImgIn(List<String> values) {
            addCriterion("boke_img in", values, "bokeImg");
            return (Criteria) this;
        }

        public Criteria andBokeImgNotIn(List<String> values) {
            addCriterion("boke_img not in", values, "bokeImg");
            return (Criteria) this;
        }

        public Criteria andBokeImgBetween(String value1, String value2) {
            addCriterion("boke_img between", value1, value2, "bokeImg");
            return (Criteria) this;
        }

        public Criteria andBokeImgNotBetween(String value1, String value2) {
            addCriterion("boke_img not between", value1, value2, "bokeImg");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}